<!DOCTYPE html>
<html>
<#include "../head.html">
<#include "../../common/function.html">
    <body>
    <table class="mc">
        <tr>
            <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
            <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="提现审核/查看">
                        <#include "banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
		                         <div class="toolbor-module">
							        <input type="button" class="input-button return" value="返回" onclick="history.go(-1)">
							    </div>
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                            <!-- V1.6.5.3 RDPROJECT-142 liukun 2013-09-11 start -->
								<!-- 
                                <form name="form1" method="post" action="verifyCash.html" onsubmit="return check_form();" enctype="multipart/form-data" >
								 -->
                                <form name="form1" method="post" action="${verifyAction!}.html" onsubmit="return checkForm();" enctype="multipart/form-data" >
                            <!-- V1.6.5.3 RDPROJECT-142 liukun 2013-09-11 end -->
                                    <div class="valBox" style="margin-bottom:20px;">
                                        <div class="top">
                                            <strong>提现审核/查看</strong>
                                        </div>
                                        <div class="w349 fp clearfix">
                                            <ul>
                                                <li>
                                                    <div class="title">用户名：</div>
                                                    <div class="v">
                                                        ${cash.username!}
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">提现银行：</div>
                                                    <div class="v">
                                                        ${cash.bankname!}
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">提现支行：</div>
                                                    <div class="v">
                                                        ${cash.account!}
                                                    </div>
                                                </li>
                                                <li class="color">
                                                    <div class="title">提现总额：</div>
                                                    <div class="v">
                                                        ${format2(cash.total!0)}
                                                    </div>
                                                </li>
                                                <li class="color">
                                                    <div class="title">到账金额：</div>
                                                    <div class="v">
                                                        ${format2(cash.credited!0)}
                                                    </div>
                                                </li>
                                                <li class="color">
                                                    <div class="title">费率：</div>
                                                    <div class="v">
                                                        ${format2(cash.fee!0)}
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">状态：</div>
                                                    <div class="v">
                                                    <!-- V1.6.5.3 RDPROJECT-142 liukun 2013-09-11 start -->
                                                        <!-- 
                                                        <#if cash.status??&&cash.status==1>提现成功<#elseif cash.status==0||cash.status==2>提现审核中<#else>提现失败</#if>
                                                         -->
                                                        <#if cash.status==0||cash.status=5||cash.status=7>审核中<#elseif cash.status==1>成功<#elseif cash.status==4>用户取消<#else>审核失败</#if>
                                                    <!-- V1.6.5.3 RDPROJECT-142 liukun 2013-09-11 end -->
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">添加时间/IP:</div>
                                                    <div class="v">
                                                        ${dateformat(cash.addtime)}/${cash.addip!"--"}
                                                    </div>
                                                </li>
                                                <li></li>      
                                                
                                            </ul>
                                        </div>
                                        </div>

										<!-- V1.6.5.3 RDPROJECT-142 liukun 2013-09-11 start -->

                                        <#if cash??&&cash.status??&&cash.status!=preStatus> 
										<!-- V1.6.5.3 RDPROJECT-142 liukun 2013-09-11 end -->
                                        <div class="add-time">
									        <span class="mr25"><strong>审核信息：</strong>审核人：${cash.verify_username!"admin"},审核时间：${dateformat(cash.verify_time)},审核备注：${cash.verify_remark}</span>
									    </div>
									    <#else>
										
                                        <div id="audit">
						                    <div class="top">
						                        <strong>审核</strong>
						                    </div>
						                    <div class="v">
						                        <div class="c">
						                            <div class="choose">
						                                <label class="mr15">
						                                	<input name="status" type="radio" value="1" class="radio">审核通过
						                                </label>
						                                <label>
						                                <!-- V1.6.5.3 RDPROJECT-142 liukun 2013-09-11 start -->
						                                	<!-- 
						                                	<input name="status" type="radio" class="radio" value="3" checked="checked">审核不通过
						                                	 -->
						                                	<input name="status" type="radio" class="radio" value="3" checked="checked">审核不通过
						                                <!-- V1.6.5.3 RDPROJECT-142 liukun 2013-09-11 start -->
						                                </label>
						                            </div>
						                            <div class="ce">
						                                到账金额：
						                                <!--<input type="text" name="credited" value="${format2(cash.credited!0)}" style="text-align:center;">-->
														<span><strong>${format2(cash.credited!0)}</strong></span>&nbsp;&nbsp;（一旦审核通过将不可再进行修改）
						                            </div>                
						                            <div class="ce">
						                                费率：
						                               <!-- v1.6.6.1 RDPROJECT-97 zza 2013-09-25 start -->
						                               <input type="text" name="fee" id="infonlv" value="${format2(cash.fee!0)}" style="text-align:center;" onKeyUp="value=value.replace(/[^0-9.]/g,'')">
						                            	<!-- v1.6.6.1 RDPROJECT-97 zza 2013-09-25 end -->
						                            </div>
						                            <textarea class="remark" name="verify_remark">输入审核备注...</textarea>
						                        </div>
						                        <div class="other clearfix">
													<input type="hidden" name="id" value="${cash.id?c}" />
													<input type="hidden" name="user_id" value="${cash.user_id?c}" />
													<input type="hidden" name="verifycash_token" value="${verifycash_token}" />
													<!-- V1.6.5.3 RDPROJECT-142 liukun 2013-09-11 start -->
													<input type="hidden" name="verify_step" value="${verifyStep}" />
													<!-- V1.6.5.3 RDPROJECT-142 liukun 2013-09-11 end -->
													<input type="submit"  name="reset" value="确定审核" class="input-button confirm"/>
						                        </div>

						                    </div>
						                </div>
									</#if>
                                    

                                </form>

                            </div>
            </td>
        </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>

    </body>
</html>
<#include "../jsPage.html">
<script>
	function checkForm(){
		 var frm = document.forms['form1'];
		 var verify_remark = frm.elements['verify_remark'].value;
		 var status = $('input[name="status"]:checked').val();
		 var errorMsg = '';
		  if (verify_remark.length == 0 ) {
			errorMsg += '备注必须填写' + '\n';
		  }
		  if (errorMsg.length > 0){
			alert(errorMsg); return false;
		  } else{  
			return true;
		  }
	}
	// v1.6.6.1 RDPROJECT-97 zza 2013-09-25 start
	function reg(){
        var iput=document.getElementById("infonlv");
        iput.value=iput.value.replace(/[^0-9\.]/g,'');
        iput.value=iput.value.replace(/\.{2,}/g,'.');
        if(/\.\d+\.+/.test(iput.value)){
            iput.value=iput.value.replace(/\.+$/g,'');
        }
    }
   $("#infonlv").keyup(function(){
	   	reg();
	});
	// v1.6.6.1 RDPROJECT-97 zza 2013-09-25 end
</script>
